// import Layout from "@/parts/html/layout/index";
import Layout from "@/layout";
import emptyLayout from "@/layout/emptyLayout.vue";

let activeSidebarMenu = "/noPage";
// 通用路由
const authorityRouter = [
  /**
   * 主播管理
   */
  // 招募工作平台
  {
    path: "/seestar",
    component: Layout,
    redirect: "/seestar/statisticsList",
    name: "seestar",
    alwaysShow: true,
    meta: {
      icon: "component",
      title: "招募工作台",
      fn: "seestar"
    },
    children: [
      // {
      //   path: "list",
      //   component: () => import("@/views/seestar/list"),
      //   name: "seestar_List",
      //   meta: {
      //     title: "所有主播列表",
      //     fn: "seestar_List"
      //   }
      // },

      {
        path: "potentialList",
        component: () => import("@/views/seestar/potentialList"),
        name: "seestar_potentialList",
        meta: {
          title: "意向主播列表",
          fn: "seestar_potentialList"
        }
      },
      {
        path: "signList",
        component: () => import("@/views/seestar/signList"),
        name: "seestar_signList",
        meta: {
          title: "送审主播列表",
          fn: "seestar_signList"
        }
      },
      {
        path: "bindedList",
        component: () => import("@/views/seestar/bindedList"),
        name: "seestar_bindedList",
        meta: {
          title: "绑定主播列表",
          fn: "seestar_bindedList"
        }
      },
      {
        path: "signingList",
        component: () => import("@/views/seestar/signingList"),
        name: "seestar_signingList",
        meta: {
          title: "试播主播列表",
          fn: "seestar_signingList"
        }
      },
      {
        path: "signedList",
        component: () => import("@/views/seestar/signedList"),
        name: "seestar_signedList",
        meta: {
          title: "已开播主播列表",
          fn: "seestar_signedList"
        }
      },
      {
        path: "statisticsList",
        component: () => import("@/views/seestar/statistics/list"),
        name: "seestar_statisticsList",
        meta: {
          title: "所有主播报表",
          fn: "seestar_statisticsList"
        }
      },
      {
        path: "create",
        component: () => import("@/views/actor/default/create"),
        name: "seestar_create",
        hidden: true,
        meta: {
          title: "创建主播",
          fn: "seestar_create",
          activeSidebarMenu: activeSidebarMenu,
          noCache: true
        }
      },
      {
        path: "detail",
        component: () => import("@/views/actor/default/detail"),
        name: "seestar_detail",
        hidden: true,
        meta: {
          title: "主播详情",
          fn: "seestar_detail",
          activeSidebarMenu: activeSidebarMenu,
          noCache: true
        }
      },
      {
        path: "edit",
        component: () => import("@/views/actor/default/edit"),
        name: "seestar_edit",
        hidden: true,
        meta: {
          title: "修改主播",
          fn: "seestar_edit",
          activeSidebarMenu: activeSidebarMenu,
          noCache: true
        }
      },

      // 按钮操作，这里是为了显示fn名称
      // {
      //   path: "delete",
      //   name: "seestar_delete",
      //   hidden: true,
      //   meta: {
      //     title: '删除主播',
      //     fn: 'seestar_delete',
      //     activeSidebarMenu: '/seestar/list'
      //   }
      // },
      // {
      //   path: "actorRecord",
      //   name: "seestar_actorRecord",
      //   hidden: true,
      //   meta: {
      //     title: '获取主播跟进记录',
      //     fn: 'seestar_actorRecord',
      //   }
      // },
      // {
      //   path: "actorRecordCreate",
      //   name: "seestar_actorRecordCreate",
      //   hidden: true,
      //   meta: {
      //     title: '增加主播跟进记录',
      //     fn: 'seestar_actorRecordCreate',
      //   }
      // },
      // {
      //   path: "actorStatusChange",
      //   name: "seestar_actorStatusChange",
      //   hidden: true,
      //   meta: {
      //     title: '更改主播签约状态',
      //     fn: 'seestar_actorStatusChange',
      //   }
      // },
      // {
      //   path: "actorWishChange",
      //   name: "seestar_actorWishChange",
      //   hidden: true,
      //   meta: {
      //     title: '更改主播签约意愿',
      //     fn: 'seestar_actorWishChange',
      //   }
      // },
      //   path: "actorClueStatusChange",
      //   name: "seestar_actorClueStatusChange",
      //   hidden: true,
      //   meta: {
      //     title: '更改主播线索签约状态为意向主播',
      //     fn: 'seestar_actorClueStatusChange',
      //   }
      // },
      // {
      //   path: "agentOfferList",
      //   name: "seestar_agentOfferList",
      //   hidden: true,
      //   meta: {
      //     title: '运营报价列表',
      //     fn: 'seestar_agentOfferList',
      //   }
      // },
      {
        path: "liveDetail",
        component: () => import("@/views/seestar/liveDetail"),
        name: "seestar_liveDetail",
        hidden: true,
        meta: {
          title: "直播间信息",
          fn: "seestar_liveDetail",
          noCache: true
        }
      },
      // {
      //   path: "seestar_addLive",
      //   name: "seestar_addLive",
      //   meta: {
      //     title: "新增直播间信息",
      //     fn: "seestar_addLive"
      //   }
      // },
      // {
      //   path: "seestar_editLive",
      //   name: "seestar_editLive",
      //   meta: {
      //     title: "编辑直播间信息",
      //     fn: "seestar_editLive"
      //   }
      // },
      // {
      //   path: "seestar_deleteLive",
      //   name: "seestar_deleteLive",
      //   meta: {
      //     title: "删除直播间信息",
      //     fn: "seestar_deleteLive"
      //   }
      // },
      // {
      //   path: "seestar_liveTurnover",
      //   name: "seestar_liveTurnover",
      //   meta: {
      //     title: "查看直播间流水",
      //     fn: "seestar_liveTurnover"
      //   }
      // },
      {
        path: "/seestar/channel",
        // component: () => import("@/views/seestar/channel/layout"),
        component: emptyLayout,
        redirect: "/seestar/channel/qrcode/index",
        name: "seestar_channel",
        alwaysShow: true,
        meta: {
          breadcrumb: false,
          icon: "component",
          title: "渠道管理",
          fn: "seestar_channel"
        },

        children: [
          {
            path: "clueList",
            component: () => import("@/views/seestar/channel/clueList"),
            name: "seestar_channelClueList",
            meta: {
              title: "主播线索列表",
              fn: "seestar_channelClueList"
            }
          },
          {
            path: "clueDetail",
            component: () => import("@/views/actor/default/detail"),
            name: "seestar_channelClueDetail",
            hidden: true,
            meta: {
              title: "主播线索详情",
              fn: "seestar_channelClueDetail",
              activeSidebarMenu: "/seestar/channel/clueList",
              noCache: true
            }
          },
          {
            path: "clueEdit",
            component: () => import("@/views/actor/default/edit"),
            name: "seestar_channelClueEdit",
            hidden: true,
            meta: {
              title: "主播线索编辑",
              fn: "seestar_channelClueEdit",
              activeSidebarMenu: "/seestar/channel/clueList",
              noCache: true
            }
          },
          {
            path: "index",
            component: () => import("@/views/seestar/channel/qrcode/index"),
            name: "seestar_channelQrcodeList",
            meta: {
              title: "渠道列表",
              fn: "seestar_channelQrcodeList"
            }
          },
          {
            path: "h5BillVisitor",
            hidden: true,
            component: () =>
              import("@/views/seestar/channel/qrcode/h5BillVisitor"),
            name: "seestar_channelH5BillVisitor",
            meta: {
              title: "海报链接浏览统计页面",
              fn: "seestar_channelH5BillVisitor",
              activeSidebarMenu: "/seestar/channel/index",
              noCache: true
            }
          },
          // {
          //   name: "seestar_channelH5BillVisitorByDate",
          //   meta: {
          //     title: "海报链接浏览统计详情(每天)",
          //     fn: "seestar_channelH5BillVisitorByDate",
          //   }
          // },
          {
            path: "h5SubmitVisitor",
            hidden: true,
            component: () =>
              import("@/views/seestar/channel/qrcode/h5SubmitVisitor"),
            name: "seestar_channelH5SubmitVisitor",
            meta: {
              title: "资料提交页链接浏览统计页面",
              fn: "seestar_channelH5SubmitVisitor",
              activeSidebarMenu: "/seestar/channel/index",
              noCache: true
            }
          },
          // {
          //   name: "seestar_channelH5SubmitVisitorByDate",
          //   meta: {
          //     title: "资料提交页链接浏览统计详情(每天)",
          //     fn: "seestar_channelH5SubmitVisitorByDate",
          //   }
          // },
          {
            path: "settleStyle",
            hidden: true,
            component: () =>
              import("@/views/seestar/channel/qrcode/settleStyle"),
            name: "seestar_channelSettleStyle",
            meta: {
              title: "渠道结算方式",
              fn: "seestar_channelSettleStyle",
              activeSidebarMenu: "/seestar/channel/index",
              noCache: true
            }
          },
          // {
          //   path: "addSettleStyle",
          //   name: "seestar_channelAddSettleStyle",
          //   meta: {
          //     title: "新增渠道结算方式",
          //     fn: "seestar_channelAddSettleStyle",
          //   }
          // },
          //   {
          //     path: "create",
          //     name: "seestar_channelCreateQrcode",
          //     hidden: true,
          //     meta: {
          //       title: '创建渠道',
          //       fn: 'seestar_channelCreateQrcode'
          //     }
          //   },
          //   {
          //     path: "detail",
          //     name: "seestar_channelQrcodeDetail",
          //     hidden: true,
          //     meta: {
          //       title: '渠道详情',
          //       fn: 'seestar_channelQrcodeDetail'
          //     }
          //   },
          //   { path: "edit",
          //     name: "seestar_channelEditQrcode",
          //     hidden: true,
          //     meta: {
          //       title: '渠道修改',
          //       fn: 'seestar_channelEditQrcode'
          //     }
          //   },
          //   { path: "changePassword",
          //     name: "seestar_channelChangePassword",
          //     hidden: true,
          //     meta: {
          //       title: '渠道密码修改',
          //       fn: 'seestar_channelChangePassword'
          //     }
          //   },
          //   { path: "渠道海报查看",
          //     name: "seestar_channelBillView",
          //     hidden: true,
          //     meta: {
          //       title: '渠道海报查看',
          //       fn: 'seestar_channelBillView'
          //     }
          //   },
          //   { path: "渠道状态修改",
          //     name: "seestar_channelStatus",
          //     hidden: true,
          //     meta: {
          //       title: '渠道状态修改',
          //       fn: 'seestar_channelStatus'
          //     }
          //   },

          //     {path: "导出渠道列表数据",
          //     name: "seestar_channelListExport",
          //     hidden: true,
          //     meta: {
          //       title: '导出渠道列表数据',
          //       fn: 'seestar_channelListExport'
          //     }
          //   },
          //     {path: "导出主播线索列表数据",
          //     name: "seestar_clueActorListExport",
          //     hidden: true,
          //     meta: {
          //       title: '导出主播线索列表数据',
          //       fn: 'seestar_clueActorListExport'
          //     }
          //   },
          //     {path: "导出所有主播列表数据",
          //     name: "seestar_actorListExport",
          //     hidden: true,
          //     meta: {
          //       title: '导出所有主播列表数据',
          //       fn: 'seestar_actorListExport'
          //     }
          //   },

          {
            path: "h5docList",
            component: () => import("@/views/seestar/channel/h5doc/index"),
            name: "seestar_channelH5docList",
            meta: {
              title: "H5文案管理",
              fn: "seestar_channelH5docList"
            }
          },
          {
            path: "createH5doc",
            component: () => import("@/views/seestar/channel/h5doc/create"),
            name: "seestar_channelCreateH5doc",
            hidden: true,
            meta: {
              title: "创建文案",
              fn: "seestar_channelCreateH5doc",
              noCache: true
            }
          },
          {
            path: "h5docDetail",
            component: () => import("@/views/seestar/channel/h5doc/detail"),
            name: "seestar_channelH5docDetail",
            hidden: true,
            meta: {
              title: "文案详情",
              fn: "seestar_channelH5docDetail",
              noCache: true
            }
          },
          {
            path: "editH5doc",
            component: () => import("@/views/seestar/channel/h5doc/edit"),
            name: "seestar_channelEditH5doc",
            hidden: true,
            meta: {
              title: "修改文案",
              fn: "seestar_channelEditH5doc",
              noCache: true
            }
          }
          //   {
          //     path: "delete",
          //     name: "seestar_channelDeleteH5doc",
          //     hidden: true,
          //     meta: {
          //       title: '删除文案',
          //       fn: 'seestar_channelDeleteH5doc'
          //     }
          //   },
        ]
      },
      {
        path: "/seestar/alerted",
        // component: () => import("@/views/seestar/alerted/layout"),
        component: emptyLayout,
        redirect: "/seestar/alerted/index",
        name: "seestar_alerted",
        alwaysShow: true,
        meta: {
          breadcrumb: false,
          icon: "component",
          title: "预警管理",
          fn: "seestar_alerted"
        },
        children: [
          {
            path: "index",
            component: () => import("@/views/seestar/alerted/index"),
            name: "seestar_alertedList",
            meta: {
              title: "招募预警列表",
              fn: "seestar_alertedList"
            }
          }
        ]
      },
      {
        path: "/seestar/customize",
        // component: () => import("@/views/seestar/customize/layout"),
        component: emptyLayout,
        redirect: "/seestar/customize/warning/index",
        name: "seestar_customize",
        alwaysShow: true,
        meta: {
          breadcrumb: false,
          icon: "component",
          title: "定制管理",
          fn: "seestar_customize"
        },
        children: [
          {
            path: "index",
            component: () => import("@/views/seestar/customize/warning/index"),
            name: "seestar_customizeWarningList",
            meta: {
              title: "预警定制列表",
              fn: "seestar_customizeWarningList"
            }
          }
          //   {
          //     path: "create",
          //     name: "seestar_customizeCreateWarning",
          //     hidden: true,
          //     meta: {
          //       title: '创建招募预警设置',
          //       fn: 'seestar_customizeCreateWarning'
          //     }
          //   },
          //   {
          //     path: "edit",
          //     name: "seestar_customizeEditWarning",
          //     hidden: true,
          //     meta: {
          //       title: '招募预警设置修改',
          //       fn: 'seestar_customizeEditWarning'
          //     }
          //   },
          // 用按钮操作，放这里是为了方便提醒前端用了那个fn名称
          // {
          //   path: "delete",
          //   name: "seestar_customizeDeleteWarning",
          //   hidden: true,
          //   meta: {
          //     title: '招募预警设置删除',
          //     fn: 'seestar_customizeDeleteWarning'
          //   }
          // }
        ]
      }
    ]
  },
  // 运营工作平台
  {
    path: "/agent",
    component: Layout,
    redirect: "/agent/hallList",
    name: "agent",
    alwaysShow: true,
    meta: {
      icon: "component",
      title: "运营工作台",
      fn: "agent"
    },
    children: [
      {
        path: "hallList",
        component: () => import("@/views/agent/hallList"),
        name: "agent_hallList",
        meta: {
          title: "签约大厅",
          fn: "agent_hallList"
        }
      },
      {
        path: "detail",
        component: () => import("@/views/actor/default/detail"),
        name: "agent_detail",
        hidden: true,
        meta: {
          title: "主播详情",
          fn: "agent_detail",
          activeSidebarMenu: "/agent/hallList"
        }
      },
      {
        path: "edit",
        component: () => import("@/views/actor/default/edit"),
        name: "agent_edit",
        hidden: true,
        meta: {
          title: "主播修改",
          fn: "agent_edit",
          activeSidebarMenu: "/agent/hallList"
        }
      },
      {
        path: "bindedList",
        component: () => import("@/views/agent/bindedList"),
        name: "agent_bindedList",
        meta: {
          title: "绑定列表",
          fn: "agent_bindedList"
        }
      },
      {
        path: "wantSignList",
        component: () => import("@/views/agent/wantSignList"),
        name: "agent_wantSignList",
        meta: {
          title: "想签主播列表",
          fn: "agent_wantSignList"
        }
      },
      {
        path: "signingList",
        component: () => import("@/views/agent/signingList"),
        name: "agent_signingList",
        meta: {
          title: "试播主播列表",
          fn: "agent_signingList"
        }
      },
      {
        path: "signedList",
        component: () => import("@/views/agent/signedList"),
        name: "agent_signedList",
        meta: {
          title: "已开播主播列表",
          fn: "agent_signedList"
        }
      },

      // 显示fn名称
      // {
      //   path: "agent_bindActor",
      //   name: "agent_bindActor",
      //   hidden: true,
      //   meta: {
      //     title: '绑定主播',
      //     fn: 'agent_bindActor',
      //   }
      // },
      // {
      //   path: "agent_unbindActor",
      //   name: "agent_unbindActor",
      //   hidden: true,
      //   meta: {
      //     title: '释放主播',
      //     fn: 'agent_unbindActor',
      //   }
      // },
      // {
      //   path: "agent_signOffer",
      //   name: "agent_signOffer",
      //   hidden: true,
      //   meta: {
      //     title: '我的签约意愿',
      //     fn: 'agent_signOffer',
      //   }
      // },
      // {
      //   path: "agent_signOfferList",
      //   name: "agent_signOfferList",
      //   hidden: true,
      //   meta: {
      //     title: '主播签约意愿列表',
      //     fn: 'agent_signOfferList',
      //   }
      // },
      //   path: "agent_actorStatusChange",
      //   name: "agent_actorStatusChange",
      //   hidden: true,
      //   meta: {
      //     title: '修改签约状态',
      //     fn: 'agent_actorStatusChange',
      //   }
      // },
      {
        path: "liveDetail",
        component: () => import("@/views/agent/liveDetail"),
        name: "agent_liveDetail",
        hidden: true,
        meta: {
          title: "直播间信息",
          fn: "agent_liveDetail",
          noCache: true
        }
      },
      // {
      //   path: "agent_addLive",
      //   name: "agent_addLive",
      //   meta: {
      //     title: "新增直播间信息",
      //     fn: "agent_addLive"
      //   }
      // },
      // {
      //   path: "agent_editLive",
      //   name: "agent_editLive",
      //   meta: {
      //     title: "编辑直播间信息",
      //     fn: "agent_editLive"
      //   }
      // },
      // {
      //   path: "agent_deleteLive",
      //   name: "agent_deleteLive",
      //   meta: {
      //     title: "删除直播间信息",
      //     fn: "agent_deleteLive"
      //   }
      // },
      {
        path: "/agent/finance",
        // component: () => import("@/views/agent/channel/layout"),
        component: emptyLayout,
        redirect: "/agent/finance/department/index",
        name: "agent_finance",
        alwaysShow: true,
        meta: {
          breadcrumb: false,
          icon: "component",
          title: "财务管理",
          fn: "agent_finance"
        },
        children: [
          {
            path: "/agent/finance/department",
            // component: () => import("@/views/agent/channel/layout"),
            component: emptyLayout,
            redirect: "/agent/finance/department/index",
            name: "agent_financeDepartment",
            meta: {
              breadcrumb: false,
              title: "部门财务管理",
              fn: "agent_financeDepartment"
            },
            children: [
              {
                path: "management",
                component: emptyLayout,
                redirect: "/agent/finance/management/list",
                name: "agent_financeManagement",
                meta: {
                  breadcrumb: false,
                  title: "核销管理",
                  fn: "agent_financeManagement"
                },
                children: [
                  // is delete
                  // {
                  //   path: "list",
                  //   component: () =>
                  //     import("@/views/agent/finance/department/index"),
                  //   name: "agent_financeManagementList",
                  //   meta: {
                  //     title: "运营财务管理列表",
                  //     fn: "agent_financeManagementList"
                  //   }
                  // },
                  // {
                  //   path: "rewardList",
                  //   component: () =>
                  //     import("@/views/agent/finance/department/rewardList"),
                  //   name: "agent_financeManagementRewardList",
                  //   hidden: true,
                  //   meta: {
                  //     title: "核销列表",
                  //     fn: "agent_financeManagementRewardList"
                  //   }
                  // },
                  {
                    path: "consumptionList",
                    component: () =>
                      import("@/views/agent/finance/consumption"),
                    name: "agent_financeManagementConsumptionList",
                    meta: {
                      title: "核销管理列表",
                      fn: "agent_financeManagementConsumptionList"
                    }
                  }
                  // {
                  //   path: "consumptionFrom/add",
                  //   component: () =>
                  //     import("@/views/agent/finance/consumption/form.vue"),
                  //   name: "agent_financeManagementConsumptionFromAdd",
                  //   hidden: true,
                  //   meta: {
                  //     title: "新增核销",
                  //     fn: "agent_financeManagementConsumptionFromAdd"
                  //   }
                  // },
                  // {
                  //   path: "consumptionDetails",
                  //   component: () =>
                  //     import("@/views/agent/finance/consumption/details.vue"),
                  //   name: "agent_financeManagementConsumptionDetails",
                  //   hidden: true,
                  //   meta: {
                  //     title: "核销详情",
                  //     fn: "agent_financeManagementConsumptionDetails"
                  //   }
                  // }
                ]
              },
              {
                path: "index",
                component: () =>
                  import("@/views/agent/finance/department/index"),
                name: "agent_financeDepartmentList",
                meta: {
                  title: "部门财务列表",
                  fn: "agent_financeDepartmentList"
                }
              },
              {
                path: "rewardTotalDetail",
                component: () =>
                  import("@/views/agent/finance/rewardTotalDetail"),
                name: "agent_financeDepartmentRewardTotalDetail",
                hidden: true,
                meta: {
                  title: "核销申请总额详情",
                  fn: "agent_financeDepartmentRewardTotalDetail"
                }
              },
              {
                path: "basePayDetail",
                component: () => import("@/views/agent/finance/basePayDetail"),
                name: "agent_financeDepartmentBasePayDetail",
                hidden: true,
                meta: {
                  title: "保底/底薪总额详情",
                  fn: "agent_financeDepartmentBasePayDetail"
                }
              },
              {
                path: "retainerDetail",
                component: () => import("@/views/agent/finance/retainerDetail"),
                name: "agent_financeDepartmentRetainerDetail",
                hidden: true,
                meta: {
                  title: "签约金/经纪转让费总额详情",
                  fn: "agent_financeDepartmentRetainerDetail"
                }
              },
              {
                path: "facilityCostDetail",
                component: () =>
                  import("@/views/agent/finance/facilityCostDetail"),
                name: "agent_financeDepartmentFacilityCostDetail",
                hidden: true,
                meta: {
                  title: "设备费用详情",
                  fn: "agent_financeDepartmentFacilityCostDetail"
                }
              },
              {
                path: "houseCostDetail",
                component: () =>
                  import("@/views/agent/finance/houseCostDetail"),
                name: "agent_financeDepartmentHouseCostDetail",
                hidden: true,
                meta: {
                  title: "住房扶持费用详情",
                  fn: "agent_financeDepartmentHouseCostDetail"
                }
              },
              {
                path: "seestarCostDetail",
                component: () =>
                  import("@/views/agent/finance/seestarCostDetail"),
                name: "agent_financeDepartmentSeestarCostDetail",
                hidden: true,
                meta: {
                  title: "星探合作费用详情",
                  fn: "agent_financeDepartmentSeestarCostDetail"
                }
              }
            ]
          },
          {
            path: "/agent/finance/personal",
            // component: () => import("@/views/agent/channel/layout"),
            component: emptyLayout,
            redirect: "/agent/finance/personal/index",
            name: "agent_financePersonal",
            meta: {
              breadcrumb: false,
              title: "运营财务管理",
              fn: "agent_financePersonal"
            },
            children: [
              {
                path: "index",
                component: () => import("@/views/agent/finance/personal/index"),
                name: "agent_financePersonalList",
                meta: {
                  title: "运营财务列表",
                  fn: "agent_financePersonalList"
                }
              },
              {
                path: "basePayDetail",
                component: () => import("@/views/agent/finance/basePayDetail"),
                name: "agent_financePersonalBasePayDetail",
                hidden: true,
                meta: {
                  title: "保底/底薪总额详情",
                  fn: "agent_financePersonalBasePayDetail"
                }
              },
              {
                path: "retainerDetail",
                component: () => import("@/views/agent/finance/retainerDetail"),
                name: "agent_financePersonalRetainerDetail",
                hidden: true,
                meta: {
                  title: "签约金总额详情",
                  fn: "agent_financePersonalRetainerDetail"
                }
              },
              {
                path: "facilityCostDetail",
                component: () =>
                  import("@/views/agent/finance/facilityCostDetail"),
                name: "agent_financePersonalFacilityCostDetail",
                hidden: true,
                meta: {
                  title: "设备费用详情",
                  fn: "agent_financePersonalFacilityCostDetail"
                }
              },
              {
                path: "houseCostDetail",
                component: () =>
                  import("@/views/agent/finance/houseCostDetail"),
                name: "agent_financePersonalHouseCostDetail",
                hidden: true,
                meta: {
                  title: "住房扶持费用详情",
                  fn: "agent_financePersonalHouseCostDetail"
                }
              },
              {
                path: "rewardDetailIndex",
                component: () =>
                  import("@/views/agent/finance/personal/reward/index"),
                name: "agent_financePersonalrewardDetailIndex",
                hidden: true,
                meta: {
                  title: "核销详情列表",
                  fn: "agent_financePersonalrewardDetailIndex"
                }
              },
              // {
              //   name: "agent_financePersonalrewardDetail",
              //   hidden: true,
              //   meta: {
              //     title: "核销详情",
              //     fn: "agent_financePersonalrewardDetail"
              //   }
              // },
              // {
              //   name: "agent_financePersonalrewardDelete",
              //   hidden: true,
              //   meta: {
              //     title: "删除核销详情",
              //     fn: "agent_financePersonalrewardDelete"
              //   }
              // },
              {
                path: "seestarCostDetail",
                component: () =>
                  import("@/views/agent/finance/seestarCostDetail"),
                name: "agent_financePersonalSeestarCostDetail",
                hidden: true,
                meta: {
                  title: "星探合作费用详情",
                  fn: "agent_financePersonalSeestarCostDetail"
                }
              }
            ]
          }
        ]
      }
    ]
  },
  // 财务工作平台
  {
    path: "/finance",
    component: Layout,
    redirect: "/finance/reward/index",
    name: "finance",
    alwaysShow: true,
    meta: {
      icon: "component",
      title: "财务工作台",
      fn: "finance"
    },
    children: [
      {
        path: "/finance/reward",
        // component: () => import("@/views/channel/layout"),
        component: emptyLayout,
        redirect: "/finance/reward/index",
        name: "agent_financeReward",
        meta: {
          breadcrumb: false,
          title: "核销管理",
          fn: "agent_financeReward"
        },
        children: [
          {
            path: "index",
            component: () => import("@/views/finance/reward/index"),
            name: "agent_financeRewardList",
            meta: {
              title: "核销列表",
              fn: "agent_financeRewardList"
            }
          },
          {
            path: "detail",
            component: () => import("@/views/finance/reward/detail"),
            name: "agent_financeRewardDetail",
            hidden: true,
            meta: {
              title: "核销详情",
              fn: "agent_financeRewardDetail"
            }
          }
          //   {
          //     path: "import",
          //     name: "agent_financeRewardImport",
          //     meta: {
          //       title: "导入审核过的excel",
          //       fn: "agent_financeRewardImport"
          //     }
          //   },
          //   {
          //     path: "export",
          //     name: "agent_financeRewardExport",
          //     meta: {
          //       title: "导出数据excel",
          //       fn: "agent_financeRewardExport"
          //     }
          //   },
          //   {
          //     name: "agent_financeRewardExportPic",
          //     meta: {
          //       title: "导出图片excel",
          //       fn: "agent_financeRewardExportPic"
          //     }
          //   },
          //   {
          //     path: "delete",
          //     name: "agent_financeRewardDelete",
          //     meta: {
          //       title: "删除",
          //       fn: "agent_financeRewardDelete"
          //     }
          //   },
        ]
      },
      {
        path: "/finance/basePay",
        // component: () => import("@/views/channel/layout"),
        component: emptyLayout,
        redirect: "/finance/basePay/index",
        name: "agent_financeBasePay",
        meta: {
          breadcrumb: false,
          title: "保底/底薪管理",
          fn: "agent_financeBasePay"
        },
        children: [
          {
            path: "index",
            component: () => import("@/views/finance/basePay/index"),
            name: "agent_financeBasePayList",
            meta: {
              title: "保底/底薪列表",
              fn: "agent_financeBasePayList"
            }
          },
          {
            path: "detail",
            component: () => import("@/views/finance/basePay/detail"),
            name: "agent_financeBasePayDetail",
            hidden: true,
            meta: {
              title: "保底/底薪详情",
              fn: "agent_financeBasePayDetail"
            }
          },
          {
            path: "create",
            component: () => import("@/views/finance/basePay/create"),
            name: "agent_financeBasePayCreate",
            hidden: true,
            meta: {
              title: "新增保底/底薪",
              fn: "agent_financeBasePayCreate"
            }
          }
          //   {
          //     path: "import",
          //     name: "agent_financeBasePayImport",
          //     meta: {
          //       title: "导入",
          //       fn: "agent_financeBasePayImport"
          //     }
          //   },
          //   {
          //     path: "delete",
          //     name: "agent_financeBasePayDelete",
          //     meta: {
          //       title: "删除",
          //       fn: "agent_financebasePayDelete"
          //     }
          //   },
        ]
      },
      {
        path: "/finance/department",
        // component: () => import("@/views/channel/layout"),
        component: emptyLayout,
        redirect: "/finance/department/home",
        name: "finance_department",
        meta: {
          breadcrumb: false,
          title: "部门财务管理",
          fn: "finance_department"
        },
        children: [
          {
            path: "home",
            component: () => import("@/views/finance/department/home"),
            name: "finance_departmentHome",
            meta: {
              title: "部门财务",
              fn: "finance_departmentHome"
            }
          },
          {
            path: "index",
            component: () => import("@/views/finance/department/index"),
            name: "finance_departmentList",
            hidden: true,
            meta: {
              title: "部门财务列表",
              fn: "finance_departmentList"
            }
          },
          {
            path: "rewardTotalDetail",
            component: () => import("@/views/finance/rewardTotalDetail"),
            name: "finance_departmentRewardTotalDetail",
            hidden: true,
            meta: {
              title: "核销申请总额详情",
              fn: "finance_departmentRewardTotalDetail"
            }
          },
          {
            path: "basePayDetail",
            component: () => import("@/views/finance/basePayDetail"),
            name: "finance_departmentBasePayDetail",
            hidden: true,
            meta: {
              title: "保底/底薪总额详情",
              fn: "finance_departmentBasePayDetail"
            }
          },
          {
            path: "retainerDetail",
            component: () => import("@/views/finance/retainerDetail"),
            name: "finance_departmentRetainerDetail",
            hidden: true,
            meta: {
              title: "签约金/经纪转让权费用总额详情",
              fn: "finance_departmentRetainerDetail"
            }
          },
          {
            path: "facilityCostDetail",
            component: () => import("@/views/finance/facilityCostDetail"),
            name: "finance_departmentFacilityCostDetail",
            hidden: true,
            meta: {
              title: "设备费用详情",
              fn: "finance_departmentFacilityCostDetail"
            }
          },
          {
            path: "houseCostDetail",
            component: () => import("@/views/finance/houseCostDetail"),
            name: "finance_departmentHouseCostDetail",
            hidden: true,
            meta: {
              title: "住房扶持费用详情",
              fn: "finance_departmentHouseCostDetail"
            }
          },
          {
            path: "seestarCostDetail",
            component: () => import("@/views/finance/seestarCostDetail"),
            name: "finance_departmentSeestarCostDetail",
            hidden: true,
            meta: {
              title: "星探合作费用详情",
              fn: "finance_departmentSeestarCostDetail"
            }
          }
        ]
      },
      {
        path: "/finance/personal",
        // component: () => import("@/views/agent/channel/layout"),
        component: emptyLayout,
        redirect: "/finance/personal/home",
        name: "finance_personal",
        meta: {
          breadcrumb: false,
          title: "运营财务管理",
          fn: "finance_personal"
        },
        children: [
          {
            path: "home",
            component: () => import("@/views/finance/personal/home"),
            name: "finance_personalHome",
            meta: {
              title: "运营财务",
              fn: "finance_personalHome"
            }
          },
          {
            path: "index",
            component: () => import("@/views/finance/personal/index"),
            name: "finance_personalList",
            hidden: true,
            meta: {
              title: "运营财务列表",
              fn: "finance_personalList"
            }
          },
          {
            path: "rewardDetailIndex",
            component: () => import("@/views/finance/personal/reward/index"),
            name: "finance_personalrewardDetailIndex",
            hidden: true,
            meta: {
              title: "核销详情列表",
              fn: "finance_personalrewardDetailIndex"
            }
          },
          // {
          //   name: "finance_personalrewardDetail",
          //   hidden: true,
          //   meta: {
          //     title: "核销详情",
          //     fn: "finance_personalrewardDetail"
          //   }
          // },
          // {
          //   name: "finance_personalrewardDelete",
          //   hidden: true,
          //   meta: {
          //     title: "删除核销详情",
          //     fn: "finance_personalrewardDelete"
          //   }
          // },
          {
            path: "basePayDetail",
            component: () => import("@/views/finance/basePayDetail"),
            name: "finance_personalBasePayDetail",
            hidden: true,
            meta: {
              title: "保底/底薪总额详情",
              fn: "finance_personalBasePayDetail"
            }
          },
          {
            path: "retainerDetail",
            component: () => import("@/views/finance/retainerDetail"),
            name: "finance_personalRetainerDetail",
            hidden: true,
            meta: {
              title: "签约金/经纪转让权费用总额详情",
              fn: "finance_personalRetainerDetail"
            }
          },
          {
            path: "facilityCostDetail",
            component: () => import("@/views/finance/facilityCostDetail"),
            name: "finance_personalFacilityCostDetail",
            hidden: true,
            meta: {
              title: "设备费用详情",
              fn: "finance_personalFacilityCostDetail"
            }
          },
          {
            path: "houseCostDetail",
            component: () => import("@/views/finance/houseCostDetail"),
            name: "finance_personalHouseCostDetail",
            hidden: true,
            meta: {
              title: "住房扶持费用详情",
              fn: "finance_personalHouseCostDetail"
            }
          },
          {
            path: "seestarCostDetail",
            component: () => import("@/views/finance/seestarCostDetail"),
            name: "finance_personalSeestarCostDetail",
            hidden: true,
            meta: {
              title: "星探合作费用详情",
              fn: "finance_personalSeestarCostDetail"
            }
          }
        ]
      }
    ]
  },
  // 法务工作平台
  {
    path: "/lawyer",
    component: Layout,
    redirect: "/lawyer/agreementList",
    name: "lawyer",
    alwaysShow: true,
    meta: {
      icon: "component",
      title: "法务工作台",
      fn: "lawyer"
    },
    children: [
      {
        path: "agreementList",
        component: () => import("@/views/lawyer/agreement/agreementList"),
        name: "lawyer_agreementList",
        meta: {
          title: "合同列表",
          fn: "lawyer_agreementList"
        }
      },
      {
        path: "warningList",
        component: () => import("@/views/lawyer/warning/warningList"),
        name: "lawyer_warningList",
        meta: {
          title: "预警列表",
          fn: "lawyer_warningList"
        }
      },
      {
        path: "create",
        component: () => import("@/views/lawyer/agreement/create"),
        name: "lawyer_agreementCreate",
        hidden: true,
        meta: {
          title: "创建主播",
          fn: "lawyer_agreementCreate",
          activeSidebarMenu: "/lawyer/agreementList",
          noCache: true
        }
      },
      {
        path: "detail",
        component: () => import("@/views/lawyer/agreement/detail"),
        name: "lawyer_agreementDetail",
        hidden: true,
        meta: {
          title: "主播详情",
          fn: "lawyer_agreementDetail",
          activeSidebarMenu: "/lawyer/agreementList",
          noCache: true
        }
      },
      {
        path: "edit",
        component: () => import("@/views/lawyer/agreement/edit"),
        name: "lawyer_agreementEdit",
        hidden: true,
        meta: {
          title: "修改主播",
          fn: "lawyer_agreementEdit",
          activeSidebarMenu: "/lawyer/agreementList",
          noCache: true
        }
      }
      // {
      //   path: "importExcel",
      //   name: "lawyer_agreementImportExcel",
      //   hidden: true,
      //   meta: {
      //     title: '导入excel主播',
      //     fn: 'lawyer_agreementImportExcel',
      //   }
      // },
      // {
      //   path: "importPdf",
      //   name: "lawyer_agreementImportPdf",
      //   hidden: true,
      //   meta: {
      //     title: '导入pdf合同',
      //     fn: 'lawyer_agreementImportPdf',
      //   }
      // },
      // {
      //   path: "changeStatus",
      //   name: "lawyer_agreementChangeStatus",
      //   hidden: true,
      //   meta: {
      //     title: '修改合同状态',
      //     fn: 'lawyer_agreementChangeStatus',
      //   }
      // },
    ]
  },
  // 联营工作平台
  {
    path: "/ally",
    component: Layout,
    redirect: "/ally/list",
    name: "ally",
    alwaysShow: true,
    meta: {
      icon: "component",
      title: "联营工作台",
      fn: "ally"
    },
    children: [
      {
        path: "list",
        component: () => import("@/views/ally/list"),
        name: "ally_list",
        meta: {
          title: "主播列表",
          fn: "ally_list"
        }
      },
      {
        path: "ally_create",
        component: () => import("@/views/ally/create"),
        name: "ally_create",
        hidden: true,
        meta: {
          title: "新增主播",
          fn: "ally_create"
        }
      },
      {
        path: "detail",
        component: () => import("@/views/ally/detail"),
        name: "ally_detail",
        hidden: true,
        meta: {
          title: "主播详情",
          fn: "ally_detail",
          activeSidebarMenu: "/ally/list"
        }
      },
      {
        path: "edit",
        component: () => import("@/views/ally/edit"),
        name: "ally_edit",
        hidden: true,
        meta: {
          title: "主播修改",
          fn: "ally_edit",
          activeSidebarMenu: "/ally/list"
        }
      },

      // 显示fn名称
      //   path: "ally_delete",
      //   name: "ally_delete",
      //   hidden: true,
      //   meta: {
      //     title: '删除主播',
      //     fn: 'ally_delete',
      //   }
      // },

      //   path: "ally_import",
      //   name: "ally_import",
      //   hidden: true,
      //   meta: {
      //     title: '导入主播',
      //     fn: 'ally_import',
      //   }
      // },
      //   path: "ally_actorStatusChange",
      //   name: "ally_actorStatusChange",
      //   hidden: true,
      //   meta: {
      //     title: '修改签约状态',
      //     fn: 'ally_actorStatusChange',
      //   }
      // },
      {
        path: "liveDetail",
        component: () => import("@/views/ally/liveDetail"),
        name: "ally_liveDetail",
        hidden: true,
        meta: {
          title: "直播间信息",
          fn: "ally_liveDetail",
          noCache: true
        }
      }
      // {
      //   path: "ally_addLive",
      //   name: "ally_addLive",
      //   meta: {
      //     title: "新增直播间信息",
      //     fn: "ally_addLive"
      //   }
      // },
      // {
      //   path: "ally_editLive",
      //   name: "ally_editLive",
      //   meta: {
      //     title: "编辑直播间信息",
      //     fn: "ally_editLive"
      //   }
      // },
      // {
      //   path: "ally_deleteLive",
      //   name: "ally_deleteLive",
      //   meta: {
      //     title: "删除直播间信息",
      //     fn: "ally_deleteLive"
      //   }
      // },
    ]
  },
  // 综合模块
  {
    path: "/system",
    component: Layout,
    redirect: "/system/usercenter/index",
    name: "system",
    alwaysShow: true,
    meta: {
      icon: "component",
      title: "综合模块",
      fn: "system"
    },
    children: [
      {
        path: "/system/authority",
        // component: () => import("@/views/system/layout"),
        component: emptyLayout,
        redirect: "/system/authority/organization/index",
        name: "system_authority",
        alwaysShow: true,
        meta: {
          breadcrumb: false,
          icon: "component",
          title: "公司组织架构管理",
          fn: "system_authority"
        },
        children: [
          {
            path: "/system/authority/corporation",
            // component: () =>
            //   import("@/views/system/authority/corporation/corporation"),
            component: emptyLayout,
            redirect: "/system/authority/corporation/index",
            name: "system_authorityCorporation",
            // hidden: true,
            // alwaysShow: true,
            meta: {
              breadcrumb: false,
              // icon: "component",
              title: "公司管理",
              fn: "system_authorityCorporation"
            },
            children: [
              {
                path: "index",
                component: () =>
                  import("@/views/system/authority/corporation/index"),
                //component: Layout,
                name: "system_authorityCorporationList",
                meta: {
                  title: "公司列表",
                  fn: "system_authorityCorporationList"
                }
              },
              {
                path: "create",
                component: () =>
                  import("@/views/system/authority/corporation/create"),
                name: "system_authorityCreateCorporation",
                hidden: true,
                meta: {
                  title: "创建公司",
                  activeSidebarMenu: "/system/authority/corporation/index",
                  fn: "system_authorityCreateCorporation",
                  noCache: true
                }
              },
              {
                path: "detail",
                component: () =>
                  import("@/views/system/authority/corporation/detail"),
                name: "system_authorityCorporationDetail",
                hidden: true,
                meta: {
                  title: "公司详情",
                  activeSidebarMenu: "/system/authority/corporation/index",
                  fn: "system_authorityCorporationDetail",
                  noCache: true
                }
              },
              {
                path: "edit",
                component: () =>
                  import("@/views/system/authority/corporation/edit"),
                name: "system_authorityEditCorporation",
                hidden: true,
                meta: {
                  title: "公司修改",
                  activeSidebarMenu: "/system/authority/corporation/index",
                  fn: "system_authorityEditCorporation",
                  noCache: true
                }
              }
              // 用按钮操作，放这里是为了方便提醒前端用了那个fn名称
              // {
              //   path: "delete",
              //   name: "system_authorityDeleteCorporation",
              //   hidden: true,
              //   meta: {
              //     title: '公司删除',
              //     fn: 'system_authorityDeleteCorporation'
              //   }
              // }
            ]
          },
          {
            path: "/system/authority/organization",
            // component: () =>
            //   import("@/views/system/authority/organization/organization"),
            component: emptyLayout,
            redirect: "/system/authority/organization/index",
            name: "system_authorityOrganization",
            // hidden: true,
            meta: {
              breadcrumb: false,
              // icon: "component",
              title: "部门管理",
              fn: "system_authorityOrganization"
            },
            children: [
              {
                path: "index",
                component: () =>
                  import("@/views/system/authority/organization/index"),
                name: "system_authorityOrganizationList",
                meta: {
                  title: "部门列表",
                  fn: "system_authorityOrganizationList"
                }
              },
              {
                path: "create",
                component: () =>
                  import("@/views/system/authority/organization/create"),
                name: "system_authorityCreateOrganization",
                hidden: true,
                meta: {
                  title: "创建部门",
                  activeSidebarMenu: "/system/authority/organization/index",
                  fn: "system_authorityCreateOrganization",
                  noCache: true
                }
              },
              {
                path: "detail",
                component: () =>
                  import("@/views/system/authority/organization/detail"),
                name: "system_authorityOrganizationDetail",
                hidden: true,
                meta: {
                  title: "部门详情",
                  activeSidebarMenu: "/system/authority/organization/index",
                  fn: "system_authorityOrganizationDetail",
                  noCache: true
                }
              },
              {
                path: "edit",
                component: () =>
                  import("@/views/system/authority/organization/edit"),
                name: "system_authorityEditOrganization",
                hidden: true,
                meta: {
                  title: "部门修改",
                  activeSidebarMenu: "/system/authority/organization/index",
                  fn: "system_authorityEditOrganization",
                  noCache: true
                }
              }
              // 用按钮操作，放这里是为了方便提醒前端用了那个fn名称
              // {
              //   path: "delete",
              //   name: "system_authorityDeleteOrganization",
              //   hidden: true,
              //   meta: {
              //     title: '部门删除',
              //     fn: 'system_authorityDeleteOrganization'
              //   }
              // }
            ]
          },

          {
            path: "/system/authority/platform",
            // component: () =>
            //   import("@/views/system/authority/organization/organization"),
            component: emptyLayout,
            redirect: "/system/authority/platform/index",
            name: "system_authorityPlatform",
            // hidden: true,
            // alwaysShow: true,
            meta: {
              breadcrumb: false,
              // icon: "component",
              title: "平台管理",
              fn: "system_authorityPlatform"
            },
            children: [
              {
                path: "index",
                component: () =>
                  import("@/views/system/authority/platform/index"),
                name: "system_authorityPlatformList",
                meta: {
                  title: "平台列表",
                  fn: "system_authorityPlatformList"
                }
              },
              {
                path: "create",
                component: () =>
                  import("@/views/system/authority/platform/create"),
                name: "system_authorityCreatePlatform",
                hidden: true,
                meta: {
                  title: "创建平台",
                  activeSidebarMenu: "/system/authority/platform/index",
                  fn: "system_authorityCreatePlatform",
                  noCache: true
                }
              },
              {
                path: "detail",
                component: () =>
                  import("@/views/system/authority/platform/detail"),
                name: "system_authorityPlatformDetail",
                hidden: true,
                meta: {
                  title: "平台详情",
                  activeSidebarMenu: "/system/authority/platform/index",
                  fn: "system_authorityPlatformDetail",
                  noCache: true
                }
              },
              {
                path: "edit",
                component: () =>
                  import("@/views/system/authority/platform/edit"),
                name: "system_authorityEditPlatform",
                hidden: true,
                meta: {
                  title: "平台修改",
                  activeSidebarMenu: "/system/authority/platform/index",
                  fn: "system_authorityEditPlatform",
                  noCache: true
                }
              }
              // 按钮操作，放这里是为了提醒前端fn名称
              // {
              //   path: "delete",
              //   name: "system_authorityDeletePlatform",
              //   hidden: true,
              //   meta: {
              //     title: '删除平台',
              //     fn: 'system_authorityDeletePlatform'
              //   }
              // }
            ]
          },
          {
            path: "/system/authority/role",
            // component: () =>
            //   import("@/views/system/authority/organization/organization"),
            component: emptyLayout,
            redirect: "/system/authority/role/index",
            name: "system_authorityRole",
            // hidden: true,
            // alwaysShow: true,
            meta: {
              breadcrumb: false,
              // icon: "component",
              title: "角色管理",
              fn: "system_authorityRole"
            },
            children: [
              {
                path: "index",
                component: () => import("@/views/system/authority/role/index"),
                name: "system_authorityRoleList",
                meta: {
                  title: "角色列表",
                  fn: "system_authorityRoleList"
                }
              }
              // 都是按钮操作，这里是为了显示fn
              // {
              //   path: "create",
              //   name: "system_authorityCreateRole",
              //   hidden: true,
              //   meta: {
              //     title: '创建角色',
              //     activeSidebarMenu: '/system/authority/role/index',
              //     fn: 'system_authorityCreateRole'
              //   }
              // },
              // {
              //   path: "detail",
              //   name: "system_authorityRoleDetail",
              //   hidden: true,
              //   meta: {
              //     title: '角色详情',
              //     fn: 'system_authorityRoleDetail'
              //   }
              // },
              // {
              //   path: "edit",
              //   name: "system_authorityEditRole",
              //   hidden: true,
              //   meta: {
              //     title: '角色修改',
              //     fn: 'system_authorityEditRole'
              //   }
              // },
              // {
              //   path: "delete",
              //   name: "system_authorityDeleteRole",
              //   hidden: true,
              //   meta: {
              //     title: '角色删除',
              //     fn: 'system_authorityDeleteRole'
              //   }
              // },
              // {
              //   path: "roleFunction",
              //   name: "system_authorityRoleFunction",
              //   hidden: true,
              //   meta: {
              //     title: '角色功能',
              //     fn: 'system_authorityRoleFunction'
              //   }
              // },
              // {
              //   path: "createRoleFunction",
              //   name: "system_authorityCreateRoleFunction",
              //   hidden: true,
              //   meta: {
              //     title: '增加角色功能',
              //     fn: 'system_authorityCreateRoleFunction'
              //   }
              // }
            ]
          },
          {
            path: "/system/authority/user",
            // component: () =>
            //   import("@/views/system/authority/organization/organization"),
            component: emptyLayout,
            redirect: "/system/authority/user/index",
            name: "system_authorityUser",
            // hidden: true,
            // alwaysShow: true,
            meta: {
              breadcrumb: false,
              // icon: "component",
              title: "用户管理",
              fn: "system_authorityUser"
            },
            children: [
              {
                path: "index",
                component: () => import("@/views/system/authority/user/index"),
                name: "system_authorityUserList",
                meta: {
                  title: "用户列表",
                  fn: "system_authorityUserList"
                }
              },
              {
                path: "create",
                component: () => import("@/views/system/authority/user/create"),
                name: "system_authorityCreateUser",
                hidden: true,
                meta: {
                  title: "创建用户",
                  activeSidebarMenu: "/system/authority/user/index",
                  fn: "system_authorityCreateUser",
                  noCache: true
                }
              },
              {
                path: "detail",
                component: () => import("@/views/system/authority/user/detail"),
                name: "system_authorityUserDetail",
                hidden: true,
                meta: {
                  title: "用户详情",
                  activeSidebarMenu: "/system/authority/user/index",
                  fn: "system_authorityUserDetail",
                  noCache: true
                }
              },
              {
                path: "edit",
                component: () => import("@/views/system/authority/user/edit"),
                name: "system_authorityEditUser",
                hidden: true,
                meta: {
                  title: "用户修改",
                  activeSidebarMenu: "/system/authority/user/index",
                  fn: "system_authorityEditUser",
                  noCache: true
                }
              }
              // 按钮操作，增加这里是为了显示fn名称
              // {
              //   path: "changeUserStatus",
              //   name: "system_authorityChangeUserStatus",
              //   hidden: true,
              //   meta: {
              //     title: '状态修改',
              //     fn: 'system_authorityChangeUserStatus'
              //   }
              // },
              // {
              //   path: "",
              //   name: "system_authorityChangeUserPassword",
              //   hidden: true,
              //   meta: {
              //     title: '修改密码',
              //     fn: 'system_authorityChangeUserPassword'
              //   }
              // }
            ]
          }
        ]
      },
      {
        path: "/system/function",
        // component: () => import("@/views/system/layout"),
        component: emptyLayout,
        redirect: "/system/function/index",
        name: "system_function",
        // alwaysShow: true,
        meta: {
          breadcrumb: false,
          // icon: "component",
          title: "功能设置",
          fn: "system_function"
        },
        children: [
          {
            path: "index",
            component: () => import("@/views/system/function/index"),
            name: "system_functionList",
            meta: {
              title: "功能列表",
              fn: "system_functionList"
            }
          },
          {
            path: "create",
            component: () => import("@/views/system/function/create"),
            name: "system_createFunction",
            hidden: true,
            meta: {
              title: "创建功能",
              activeSidebarMenu: "/system/function/index",
              fn: "system_createFunction",
              noCache: true
            }
          },
          {
            path: "detail",
            component: () => import("@/views/system/function/detail"),
            name: "system_functionDetail",
            hidden: true,
            meta: {
              title: "功能详情",
              activeSidebarMenu: "/system/function/index",
              fn: "system_functionDetail",
              noCache: true
            }
          },
          {
            path: "edit",
            component: () => import("@/views/system/function/edit"),
            name: "system_editFunction",
            hidden: true,
            meta: {
              title: "修改功能",
              activeSidebarMenu: "/system/function/index",
              fn: "system_editFunction",
              noCache: true
            }
          }
          // 按钮操作，放这里是为了显示fn名称
          // {
          //   path: "delete",
          //   name: "system_deleteFunction",
          //   hidden: true,
          //   meta: {
          //     title: '功能删除',
          //     fn: 'system_deleteFunction'
          //   }
          // }
        ]
      },
      {
        path: "/system/usercenter",
        // component: () => import("@/views/system/layout"),
        component: emptyLayout,
        redirect: "/system/usercenter/index",
        name: "system_usercenter",
        // hidden: true,
        // alwaysShow: true,
        meta: {
          breadcrumb: false,
          // icon: "component",
          title: "个人中心",
          fn: "system_usercenter"
        },
        children: [
          {
            path: "index",
            component: () => import("@/views/system/usercenter/index"),
            name: "system_usercenterIndex",
            meta: {
              title: "用户中心",
              fn: "system_usercenterIndex",
              noCache: true
            }
          },
          {
            path: "changePassword",
            component: () => import("@/views/system/usercenter/setting/index"),
            name: "system_usercenterSettingChangePassword",
            hidden: true,
            meta: {
              title: "修改密码",
              fn: "system_usercenterSettingChangePassword",
              noCache: true
            }
          },
          {
            path: "exclusiveBill",
            component: () => import("@/views/system/usercenter/channel/index"),
            name: "system_usercenterExclusiveBillList",
            hidden: true,
            meta: {
              title: "专属推广海报列表",
              fn: "system_usercenterExclusiveBillList",
              noCache: true
            }
          }
          // {
          //   path: "二维码海报生成",
          //   name: "system_usercenterCreateQrcodeBill,
          //   hidden: true,
          //   meta: {
          //     title: "二维码海报生成",
          //     fn: "system_usercenterCreateQrcodeBill"
          //   }
          // },
          // {
          //   path: "二维码海报查看",
          //   name: "system_usercenterQrcodeBillView",
          //   hidden: true,
          //   meta: {
          //     title: "二维码海报生成",
          //     fn: "system_usercenterQrcodeBillView"
          //   }
          // },
          // {
          //   path: "删除二维码",
          //   name: "system_usercenterDeleteQrcode",
          //   hidden: true,
          //   meta: {
          //     title: "删除二维码",
          //     fn: "system_usercenterDeleteQrcode"
          //   }
          // },
          // {
          //   path: "我的渠道注册二维码",
          //   name: "system_usercenterChannelQrcode",
          //   hidden: true,
          //   meta: {
          //     title: "我的渠道注册二维码",
          //     fn: "system_usercenterChannelQrcode"
          //   }
          // },
          // {
          //   path: "我的主播注册二维码",
          //   name: "system_usercenterActorQrcode",
          //   hidden: true,
          //   meta: {
          //     title: "我的主播注册二维码",
          //     fn: "system_usercenterActorQrcode"
          //   }
          // },
        ]
      }
    ]
  },

  {
    path: "/404",
    name: "page404",
    component: () => import("@/views/error/404")
  },
  {
    path: "*",
    name: "emptyPage",
    component: () => import("@/views/error/404")
  }
];

export { authorityRouter };
